package com.weishuang.monitor.leader.mapper;

import com.weishuang.monitor.leader.entity.ServerRamRealTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weishuang.monitor.leader.entity.vo.ServersBaseInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 服务器内存实时信息 Mapper 接口
 * </p>
 *
 * @author weishuang
 * @since 2021-03-23
 */
public interface ServerRamRealTimeMapper extends BaseMapper<ServerRamRealTime> {

    void deleteLimitNumData(@Param("serverId") String serverId, @Param("limitNumRam") Long limitNumRam);

    List<ServersBaseInfoVO> getOnlineServersRamAVG(@Param("date") Date date, @Param("threshold") Long thresholdRam);
}
